cmake_minimum_required(VERSION 3.8)
project(transform)

if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 17)
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
  add_compile_options(-Wall -Wextra -Werror=conversion -Werror=unused-but-set-variable -Werror=return-type -Werror=shadow)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
# uncomment the following section in order to fill in
# further dependencies manually.
find_package(Eigen3 REQUIRED)
find_package(geometry_msgs REQUIRED)


include_directories(
  include
)

add_library(${PROJECT_NAME} SHARED 
  src/transform.cpp
)

ament_target_dependencies(${PROJECT_NAME}
     geometry_msgs
 )

install(
  DIRECTORY include/${PROJECT_NAME} 
  DESTINATION include
  FILES_MATCHING 
    PATTERN "*.hpp"
    PATTERN "*.h"
)

install(TARGETS ${PROJECT_NAME}
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  RUNTIME DESTINATION bin
)

ament_export_libraries(${PROJECT_NAME})
ament_export_include_directories(include)

ament_package()
